/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.jiadakeji.ppm.modules.business.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.jiadakeji.ppm.common.persistence.DataEntity;

/**
 * 税率Entity
 * @author HHAOYU
 * @version 2019-08-19
 */
public class TaxRate extends DataEntity<TaxRate> {
	
	private static final long serialVersionUID = 1L;
	private String type;		// type
	private String spbm;		// spbm
	private String spName;		// sp_name
	private Date changeDate;		// change_date
	private Double beforeRate;		// before_rate
	private Double afterRate;		// after_rate
	
	public TaxRate() {
		super();
	}

	public TaxRate(String id){
		super(id);
	}

	@Length(min=0, max=1, message="type长度必须介于 0 和 1 之间")
	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}
	
	@Length(min=0, max=32, message="spbm长度必须介于 0 和 32 之间")
	public String getSpbm() {
		return spbm;
	}

	public void setSpbm(String spbm) {
		this.spbm = spbm;
	}
	
	@Length(min=0, max=64, message="sp_name长度必须介于 0 和 64 之间")
	public String getSpName() {
		return spName;
	}

	public void setSpName(String spName) {
		this.spName = spName;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getChangeDate() {
		return changeDate;
	}

	public void setChangeDate(Date changeDate) {
		this.changeDate = changeDate;
	}
	
	public Double getBeforeRate() {
		return beforeRate;
	}

	public void setBeforeRate(Double beforeRate) {
		this.beforeRate = beforeRate;
	}
	
	public Double getAfterRate() {
		return afterRate;
	}

	public void setAfterRate(Double afterRate) {
		this.afterRate = afterRate;
	}
	
}